﻿<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
<include file="public/header" />
<title>基本设置</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
	<span class="c-gray en">&gt;</span>
	系统管理
	<span class="c-gray en">&gt;</span>
	基本设置
	<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
	<form class="form form-horizontal" id="form-article-add">
		<div class="tabBar cl">
			<span>基本设置</span>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				公司名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="companyname" placeholder="" value="{$info.companyname}" class="input-text">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				系统（站点）名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="sitename" placeholder="" value="{$info.sitename}" class="input-text">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				系统（站点）版本：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="siteversion" placeholder="" value="{$info.siteversion}" class="input-text">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				联系电话：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="tel" placeholder="" value="{$info.tel}" class="input-text">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				联系邮箱：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="email" placeholder="" value="{$info.email}" class="input-text">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				联系地址：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="address" placeholder="" value="{$info.address}" class="input-text">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				关键词：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="sitekeyword" placeholder="5个左右,8汉字以内,用英文,隔开" value="{$info.sitekeyword}" class="input-text">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				描述：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="sitedesc" placeholder="空制在80个汉字，160个字符以内" value="{$info.sitedesc}" class="input-text">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				底部版权信息：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="copyright" placeholder="" value="{$info.copyright}" class="input-text">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				技术支持：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="power" placeholder="" value="{$info.power}" class="input-text">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				备案号：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="icp" placeholder="" value="{$info.icp}" class="input-text">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				统计代码：
			</label>
			<div class="formControls col-xs-8 col-sm-9">
				<textarea name="tjcode" class="textarea">{$info.tjcode}</textarea>
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
			</div>
		</div>
	</form>
</div>
<include file="public/footer" />
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__STATIC__/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__STATIC__/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="__STATIC__/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__STATIC__/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">
$("#form-article-add").validate({
	rules:{
		compayname:{
			required:true,
		},
		sitename:{
			required:true,
		},
		siteversion:{
			required:true,
		}
	},
	onkeyup:false,
	focusCleanup:true,
	success:"valid",
	submitHandler:function(form){
		$(form).ajaxSubmit({
			type: 'post',
			url: "{:url('Systemset/index')}" ,
			success: function(data){
				if(data.error=="success"){
					layer.msg('操作成功!',{icon:6,time:1000});
					setTimeout(function(){
						location.replace(location.href);
					},1500);
				}else{
					layer.msg(data.error,{icon:5,time:2000});
				}
			},
            error: function(err){
            	document.write(JSON.stringify(err));
				layer.msg('操作失败！',{icon:5,time:2000});
			}
		});
	}
});
</script>
</body>
</html>
